<?php

namespace App\Http\Controllers\Wechat;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use EasyWeChat;

class WechatController extends Controller
{
    public function serve()
    {
        $server = EasyWeChat::server();
        $server->setMessageHandler(function ($message) {
            return 'hello word!';
        });
        return $server->serve();
    }
}
